package com.xushi.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

// 玩家领奖前，需要输入真实的用户信息
@Entity
@Table(name = "user_info")
public class UserInfo {

    public UserInfo(String openId, String trueName, String phoneNumber) {
        this.openId = openId;
        this.trueName = trueName;
        this.phoneNumber = phoneNumber;
    }

    public UserInfo() {
    }

    // 同微信信息唯一对应
    @Id
    @Column(name = "openid")
    private String openId;

    @Column(name = "true_name")
    private String trueName;

    @Column(name = "phone_number")
    private String phoneNumber;

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getTrueName() {
        return trueName;
    }

    public void setTrueName(String trueName) {
        this.trueName = trueName;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }
}
